package main

// 1alpha, 2super, 3tool
var G_Flag int = 2

var AlphaConf Conf = Conf{
	SimulateNum:  7,
	AlphaPoolNum: 10,
	FileIndex:    "EUR/1-2",
}
var SuperConf Conf = Conf{
	SimulateNum:  3,
	AlphaPoolNum: 1,
	FileIndex:    "SUPER/GLB-1",
}
var G_Conf Conf

// 并发数
var G_SimulateNum int = 3
var G_AlphaPoolNum int = 1

// alpha文件
var G_FileIndex string = "SUPER/GLB-1"
var G_SimulateFile string

var G_Count int32 = 0
var G_AlphaLen int32

// 固定不变
var G_Split string = "@"
var G_PnlDays int = 986
var G_DiffDays int = 100
var G_PnlFile string = "file/pnl"

var G_CountMap map[string]int32

func init() {
	G_CountMap = make(map[string]int32)
	G_CountMap["CHN/1-1"] = 31852 //end
	G_CountMap["CHN/1-2"] = 40130

	G_CountMap["ASI/1-1"] = 0 //end
	G_CountMap["ASI/1-2"] = 0

	G_CountMap["USA/1-1"] = 0 //end
	G_CountMap["USA/2-1"] = 0
	G_CountMap["USA/3-1"] = 0 //end

	G_CountMap["EUR/1-1"] = 0 //end
	G_CountMap["EUR/1-2"] = 0
	G_CountMap["EUR/1-3"] = 0
	G_CountMap["EUR/1-4"] = 0
	G_CountMap["EUR/1-5"] = 9500

	G_CountMap["GLB/1-1"] = 29100 //end
	G_CountMap["GLB/1-2"] = 0     //end

	G_CountMap["IMP/1"] = 2480 //end

	G_CountMap["SUPER/USA-1"] = 20
	G_CountMap["SUPER/GLB-1"] = 0

	if G_Flag == 1 {
		G_Conf = AlphaConf
	} else {
		G_Conf = SuperConf
	}

	G_SimulateFile = "file/" + G_Conf.FileIndex
	G_Count = G_CountMap[G_Conf.FileIndex]
}
